package com.system.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.system.entity.dto.SearchDTO;
import com.system.entity.manage.SysUser;
import com.system.entity.manage.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SysUserDao extends BaseMapper<SysUser> {

    IPage<SysUser> selectPageList(Page page, @Param("dto") SearchDTO dto);

    int insertUserRoleList(@Param("list") List<SysUserRole> list);
}
